#ifndef SQLREADER_H
#define SQLREADER_H

#include <QObject>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <vector>

class SqlReader : public QObject
{
    Q_OBJECT
public:
    explicit SqlReader(QObject *parent = nullptr);
    void readDBFile(QString dbFilePath);
    void save(QString logFilePath);
    void readConfigFile();

signals:

private:
    std::vector<QByteArray*> *mDataVector;
    QString dbSheetName;
    int trainIDCol;
    int systemABCol;
    int masterCol;
    int cpuCol;
    int cycleCol;
    int timeCol;
    int contextCol;
};

#endif // SQLREADER_H
